<template>
<div class="mui-numbox">
					<button class="mui-btn mui-btn-numbox-minus" type="button">-</button>
					<input class="mui-input-numbox" type="number" :value="num" ref="number" @change="updatecount"/>
					<button class="mui-btn mui-btn-numbox-plus" type="button">+</button>
</div>
</template>
<script>
import mui from '../mui.min.js'  
export default{
	name:'numbox',
	props:['num','id'],
	methods:{
	updatecount(){
	console.log(this.$refs.number.value)
		this.$store.commit("updateCarCount",{id:this.id, count:this.$refs.number.value})
	}
	}
}
</script> 